package com.vinjogames.util;

import android.graphics.PointF;

public class PointFFlagged extends PointF {
	public boolean frozen;
	
	public PointFFlagged() {
		super();
		frozen = false;
	}
	
	public PointFFlagged(float x, float y) {
		super(x, y);
		frozen = false;
	}
	
	public PointFFlagged(float x, float y, boolean f) {
		super(x, y);
		frozen = f;
	}
	
	public void setX(float x) {
		if(frozen) return;
		this.x = x;
	}
	
	public void setY(float y) {
		if(frozen) return;
		this.y = y;
	}
	
	public float getX() { return x; }
	public float getY() { return y; }
	
	public String toString() {
		return "(" + x + "," + y + ")";
	}
}
